package com.dnjn.mes.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.mes.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 产能表
 * </p>
 *
 * @author Amber
 * @since 2023-07-27
 */
@Accessors(chain = true)
@Getter
@Setter
@TableName("mes_record_capacity")
public class MesRecordCapacity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    @TableId(value = "record_capacity_id", type = IdType.ASSIGN_ID)
    private Long recordCapacityId;

    @TableField("`cur_date`")
    private LocalDate curDate;

    private Integer currentHour;

    @TableField("current_date_hour")
    private String currentDateHour;

    private Integer startValue;

    private Integer endValue;
    private LocalDateTime currentDatetime;

    private Integer capacity;

    /**
     * 是否删除|0-否 1-是|valid
     */
    private String deleted;

    private Long equipmentId;

    @TableField(exist = false)
    private Double ratio;
    /*@TableField(exist = false)
    private Double earlyRatio;
    @TableField(exist = false)
    private Double nightwanRatio;*/


}
